import Vue from 'vue'
import Router from 'vue-router'
import Movie from '../components/Movie'
import TV from '../components/TV'

Vue.use(Router)

const routes = [
    {
        path: '/',
        redirect: Movie
    },
    {
        path: '/movie',
        component: Movie
    },
    {
        path: '/tv',
        component: TV
    }
]


const router = new Router ({
    routes ,
    // base : process.env.BASE_URL
})

export default router
